//
//  UserDataManager.h
//  trongvm
//
//  Created by Phan Ba Minh on 6/5/12.
//  Copyright (c) 2012 kidbaw. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <QuartzCore/QuartzCore.h>
#import <UIKit/UIKit.h>
#import "Define.h"
#import "SDWebImageManager.h"

#define STRING_CODER_USER_DATA_USER_NAME							@"STRING_CODER_USER_DATA_USER_NAME"
#define STRING_CODER_USER_DATA_USER_ID								@"STRING_CODER_USER_DATA_USER_ID"
#define STRING_CODER_USER_DATA_PASSWORD								@"STRING_CODER_USER_DATA_PASSWORD"
#define STRING_CODER_USER_DATA_SESSION_ID							@"STRING_CODER_USER_DATA_SESSION_ID"
#define STRING_CODER_USER_DATA_LOGIN_STATUS							@"STRING_CODER_USER_DATA_LOGIN_STATUS"
#define STRING_CODER_USER_DATA_LOGIN_WITH_FB_TW                     @"STRING_CODER_USER_DATA_LOGIN_WITH_FB_TW"
#define STRING_CODER_USER_DATA_AVATAR_SMALL_URL                     @"STRING_CODER_USER_DATA_AVATAR_SMALL_URL"
#define STRING_CODER_USER_DATA_FULL_NAME                            @"STRING_CODER_USER_DATA_FULL_NAME"
#define STRING_CODER_USER_DATA_USER_PROFILE_ID						@"STRING_CODER_USER_DATA_USER_PROFILE_ID"
#define STRING_CODER_USER_DATA_USER_LOCATION                        @"STRING_CODER_USER_DATA_USER_LOCATION"
#define STRING_CODER_USER_DATA_CURRENT_PLACE_MARK                   @"STRING_CODER_USER_DATA_CURRENT_PLACE_MARK"
#define STRING_CODER_USER_DATA_EMAIL_ADRESS                         @"STRING_CODER_USER_DATA_EMAIL_ADRESS"
#define STRING_CODER_USER_DATA_USER_EMAIL                           @"STRING_CODER_USER_DATA_USER_EMAIL"
#define STRING_CODER_USER_DATA_USER_REQUEST_STATUS                  @"STRING_CODER_USER_DATA_USER_REQUEST_STATUS"
#define STRING_CODER_USER_DATA_SELECTED_PERSON_ID                   @"STRING_CODER_USER_DATA_SELECTED_PERSON_ID"

@interface UserDataManager : NSObject <SDWebImageManagerDelegate> {
    
}

@property (atomic, retain) CLLocation       *userLocation;
@property (nonatomic, retain) NSString      *userID;
@property (nonatomic, retain) NSString      *userName;
@property (nonatomic, retain) NSString      *accessToken;
@property (nonatomic, retain) NSString      *password;
@property (nonatomic, retain) NSString      *sessionID;
@property (nonatomic, retain) NSString      *avatarSmallURL;
@property (nonatomic, assign) NSInteger     idProfile;
@property (nonatomic) BOOL                  loginStatus;
@property (nonatomic) BOOL                  isLoginWith_FB_TW;
@property (nonatomic, retain) NSString      *userFullName;
@property (nonatomic, retain) CLPlacemark   *currentPlaceMark;
@property (nonatomic, retain) NSString      *userEmail;
@property (nonatomic, assign) int           userRequestStatus;
@property (nonatomic, retain) NSString      *selectedPersonID;

- (void)cleanUserCacheAndCookie;
- (void)resetAllData;
- (NSString*)getUserPlaceMark;
+ (UserDataManager *)Shared;
- (void)save;

@end
